package io.renren.modules.workmanagement.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.workmanagement.entity.WorkEntity;
import io.renren.modules.workmanagement.vo.StudentWorkDetail;
import io.renren.modules.workmanagement.vo.WorkDetailsVO;
import io.renren.modules.workmanagement.vo.WorkResultVO;

import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author yewei
 * @email sunlightcs@gmail.com
 * @date 2022-04-23 18:22:44
 */
public interface WorkService extends IService<WorkEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<WorkEntity> listByClassCourseIds(List<Long> classCourseIds);

    WorkDetailsVO getWorkDetails(Long workId, Long userId);

    void submitWork(Long workId, Long userId);

    WorkResultVO getWorkResult(Long workId, Long userId);

    List<StudentWorkDetail> getStudentWorkDetailList(Long workId);
}

